﻿using System;

namespace Dqaqs.Common
{
	public static class ArgumentCheck
	{
		public static void NotNull(object arg, string name)
		{
			if (arg == null)
				throw new ArgumentNullException(name);
		}

		public static void NotNullOrEmpty(string arg, string name)
		{
			if (string.IsNullOrEmpty(arg))
				throw new ArgumentNullException(name);
		}
	}
}
